<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>assets/css/admin/stickytooltip.css" />
<script type="text/javascript" src="<?= base_url(); ?>assets/js/admin/stickytooltip.js"></script>
<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">review Report</a>
        </h2>
        <fieldset> 
            <legend>review List</legend>

            <div style=" margin-bottom: 10px">
                <span style=" float: left; width:40px;" ><strong>Id</strong></span>
                <span style=" float: left; width:110px" ><strong>Posted On</strong></span>
                <span style=" float: left; width:280px"><strong>Version </strong></span>
                <span style=" float: left; width:190px"><strong> Rating</strong></span>
                <span style=" float: left; width:50px"><strong></strong></span>
                <span style="width:150px"><strong></strong></span>
            </div>
            <?php foreach ($review as $review) : ?>

                <div style="display: block;margin-bottom: 10px; float: left">
                    <span style="float: left; width:40px" ><?= $review->id; ?></span>
                    <span style="float: left; width:110px" ><?= $review->posted_on; ?></span>
                    <span style="float: left; width:280px"><?= $this->management_model->get_version('CAR', $review->version)->version; ?> 
                        <span id="mystickytooltip" class="stickytooltip">
                            <a href="#"><img src="<?= base_url(); ?>assets/images/sicon.png" alt="Comment" border="0" 
                                             ONMOUSEOVER="ddrivetip('Name:<?= $review->name; ?><br/>Email:<?= $review->email; ?><br/>Description :<?= $review->description; ?><br/>')" ONMOUSEOUT="hideddrivetip()"/></a>
                        </span>
                    </span>
                    <span style=" float: left; width:190px">
                            <?php for ($i = 1; $i <= $review->value; $i++) { ?>
                                <img src="<?= base_url(); ?>./assets/images/review.gif"/>

                            <?php } ?>
                    </span>
                    <span style="float: left; width:50px"></span>
                    
                </div>
                <div style="float:right;margin-bottom: 10px;">
                    <?php if ($review->status == 1) { ?>
                        <a href="<?= base_url(); ?>admin/reports/change_review_status/<?= $review->id; ?>/<?= $review->status; ?>" class="link-button" onclick="return confirm('Are you sure you want to Active?')">Inactive Now </a></span> 
                    <?php } else { ?>
                        <a href="<?= base_url(); ?>admin/reports/change_review_status/<?= $review->id; ?>/<?= $review->status; ?>" class="link-button" onclick="return confirm('Are you sure you want to Active?')">Active Now </a></span> 
                    <?php } ?>
                </div>
            <?php endforeach; ?>
        </fieldset>    
        <div class="pagination" align="left"> <?php echo $this->pagination->create_links(); ?>  </div>
    </div>

</div>
